﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请选择一种动物   1、猫 2、狗 3、鸭子 4、猴子");
            int key = int.Parse(Console.ReadLine());
            switch (key)
            {
                case 1:
                    Cat c = new Cat();
                    c.AnimalEat();
                    c.Climb();
                    break;

                case 2:
                    Dog d = new Dog();
                    d.AnimalEat();
                    d.Swim();
                    break;

                case 3:
                    Duck k = new Duck();
                    k.AnimalEat();
                    k.Swim();
                    break;

                case 4:
                    Monkey m = new Monkey();
                    m.AnimalEat();
                    m.Climb();
                    break;
                default:
                    break;
            }

        }
    }
}
